<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>搜索</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no,viewport-fit=cover">
		<meta name="format-detection" content="telephone=no">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="stylesheet" href="../../css/common.css" />
		<link rel="stylesheet" href="../../css/search/search_input.css" />
		<script type="application/javascript" src="../../js/common/static_common.js"></script>
	</head>
	<body onload="setHeight()">
		<span id="app" v-cloak>
			<header id="header" title="搜索"></header>
			<div class="_div data-v-1af4fcc1 container clearfix">
				<div class="_div data-v-1af4fcc1 search-bar">
					<div class="_div data-v-1af4fcc1 search-box">
						<div class="_div data-v-1af4fcc1 inp-box">
							<input bindinput="handleProxy" class="_input data-v-1af4fcc1 inp" data-comkey="0" data-eventid="0" focus=""
							 placeholder=" " type="text" v-model.trim="searchContent" selection-start="-1" selection-end="-1" cursor="-1" />
							<img class="_img data-v-1af4fcc1 image" mode="widthFix" src="https://h5.ameimeika.com/mp_images/shouye/search@2x.png" />
						</div>
					</div>
					<div class="_div data-v-1af4fcc1 btn" data-comkey="0" data-eventid="1" @click="search">搜索</div>
				</div>
				<div class="_div data-v-1af4fcc1 content">
					<div class="_div data-v-1af4fcc1 result" v-if="!isResult">
						<div class="_div data-v-1af4fcc1 searchDV" v-if="history != null">
							<p class="_p data-v-1af4fcc1 search_title">
								搜索历史
								<img class="_img data-v-1af4fcc1 delIcon" data-comkey="0" data-eventid="4" src="https://h5.ameimeika.com/mp_images/mp_2.0/shouye/qingchu@2x.png" />
							</p>
							<ul class="_ul data-v-1af4fcc1 searchHistory">
								<li class="_li data-v-1af4fcc1 searchHistory_item" data-comkey="0" data-eventid="6-0" v-for="item in history" @click="searchHistory(item)">{{item}}</li>
							</ul>
						</div>
					</div>
					<div class="_div data-v-1af4fcc1 result" v-if="isResult">
						<div class="_div data-v-1af4fcc1 empty" v-if="isEmpty">
							<img class="_img data-v-1af4fcc1 nothing" src="https://h5.ameimeika.com/mp_images/shouye/sousuowujieguo@2x.png" />
							<div class="_div data-v-1af4fcc1 text">没有找到宝宝想看的内容 要不换个词儿再搜搜</div>
						</div>
						<div class="_ul data-v-1af4fcc1 list-goods clearfix" v-if="!isEmpty">
							<div class="_scroll-view data-v-1af4fcc1" data-comkey="0" data-eventid="3" scroll-y="" style=" height:100%;width:100%;">
								<div class="_li data-v-1af4fcc1 goods-item" v-for="item in products" @click="toDetail(item)">
									<a class="_a data-v-1af4fcc1" href="javascript:void(0)">
										<div class="_div data-v-1af4fcc1 image-box">
											<img class="_img data-v-1af4fcc1 image" :src="imgUrl+item.logoPath.split(',')[0]" />
										</div>
										<div class="_div data-v-1af4fcc1 title">{{item.name}}</div>
										<div class="_div data-v-1af4fcc1 tip clearfix">
											<div class="_div data-v-1af4fcc1 old-price">原价 {{item.originPrice}}</div>
											<div class="_div data-v-1af4fcc1 sale-num">销量 {{item.salesCount}} </div>
										</div>
										<div class="_div data-v-1af4fcc1 price">￥
											<div class="_div data-v-1af4fcc1 num">{{item.price}}</div>
										</div>
										<div class="_div data-v-1af4fcc1 credit-group" v-if="item.points>0">
											+积分
											<span class="_span data-v-1af4fcc1 num">{{item.points}}</span>
										</div>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</span>
	</body>
	<script type="application/javascript" src="../../js/product/input.js"></script>
</html>
